var max=0;function AsylumNavLink(parentId,linkId,order,href,linkText,target,width)
{this.linkId=linkId;this.parentId=parentId;this.order=order;this.href=href;this.linkText=linkText;this.target=target;this.width=width;};function AsylumNav(contId,layout,offset)
{this.menuCont=document.getElementById(contId);this.layout=layout;this.offset=(typeof offset=='undefined'?'Right':offset);this.menuItems=new Object();this.clickUnderCreated=false;};AsylumNav.prototype.AddLink=function(parentId,linkId,order,href,linkText,target,width)
{if(typeof this.menuItems[parentId]=='undefined')
{this.menuItems[parentId]=new Object();}
if(typeof width=="undefined")width=false;this.menuItems[parentId][linkId]=new AsylumNavLink(parentId,linkId,order,href,linkText,target,width);if(order>max){max=order;}};AsylumNav.prototype.CreateLevel=function(levelId,idPrefix)
{obj=this;div=document.createElement('div');div.id=idPrefix+levelId;div.levelId=levelId;div.idPrefix=idPrefix;div.className='levelDiv';div.onmouseout=function(e){obj.HideLevel(e);};div.subLevels=new Object();if(levelId!='0')
{div.style.visibility='hidden';div.className+=' subLevel';div.style.position='absolute';}
else
{div.className+=' topLevel';}
if(this.layout=='Horizontal')
{div.style.position='absolute';}
div.style.zIndex=10;if(this.menuCont){this.menuCont.appendChild(div);}
for(i=0;i<=max;i++){for(linkId in this.menuItems[levelId]){if(this.menuItems[levelId][linkId].order==i){linkDiv=document.createElement('div');linkDiv.id='asylumNavLinkDiv'+linkId;linkDiv.linkId=linkId;linkDiv.levelId=levelId;linkDiv.className='linkDiv';if(levelId=="0"){linkDiv.className+=" topLevel";if(this.menuItems[levelId][linkId].width){linkDiv.style.width=this.menuItems[levelId][linkId].width+"px";}}
div.appendChild(linkDiv);navLink=this.menuItems[levelId][linkId];a=document.createElement('a');a.id='asylumNavLink'+linkId;a.linkType='navMenu';a.linkId=linkId;a.levelId=navLink.parentId;a.parentId=navLink.parentId;if(navLink.href==''||navLink.href=='#')
{a.href='#';a.target='';a.style.cursor='default';}
else
{a.href=navLink.href;a.target=navLink.target;}
if(this.layout=='Vertical')
{a.innerHTML=navLink.linkText;}
else
{a.innerHTML=navLink.linkText.split(' ').join('&nbsp;');}
a.onmouseover=function(){obj.ShowLevel(this);};linkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';linkDiv.className+=' activeLink';topLink=this.GetTopLevelLink(navLink);if(typeof this.menuItems[topLink.linkId]!='undefined'&&navLink.levelId!='0')
{try{document.getElementById('asylumNavLink'+topLink.linkId).className+=' activeLink';document.getElementById('asylumNavLinkDiv'+topLink.linkId).className+=' activeLink';}catch(e){}}
if(document.getElementById("clickUnder")!=null)
{this.CreateClickUnder(topLink,true);}}
else
{}
if(typeof this.menuItems[linkId]!='undefined')
{div.subLevels[linkId]=true;}}}}
return div;};AsylumNav.prototype.Construct=function()
{if(this.menuCont==null){return;}
var obj=this;for(levelId in this.menuItems)
{this.CreateLevel(levelId,'asylumNavLevel');}
if(this.layout=='Vertical')
{if(typeof document.getElementById('tplMainSectors')!=null)
{ms=document.getElementById('tplMainSectors');ms.style.height=ms.offsetHeight;}}
else
{this.menuCont.style.height=document.getElementById('asylumNavLevel0').offsetHeight+'px';}
this.CreateBreadCrumbs();};AsylumNav.prototype.CreateClickUnder=function(navLink,active)
{if(typeof doneClickUnder=="undefined"){doneClickUnder=true;}else{return;}
if(document.getElementById("clickUnder")==null)return;obj=this;var linkId;if(this.layout=='Vertical')
{clickDiv=document.createElement('div');clickDiv.id="clickUnder";document.getElementById("clickUnder").appendChild(clickDiv);linkDiv=document.getElementById('asylumNavLinkDiv'+navLink.linkId);linkDiv.appendChild(clickDiv);}
else
{clickDiv=document.getElementById("clickUnder");}
var linkCount=0;for(linkId in this.menuItems[navLink.linkId])
{linkCount++;clickLinkDiv=document.createElement('div');clickLinkDiv.className='clickLinkDiv';clickLink=this.menuItems[navLink.linkId][linkId];txt=document.createTextNode(' ');clickDiv.appendChild(txt);a=document.createElement('a');a.id='asylumNavClickLink'+clickLink.linkId;a.className='clickLink';a.linkType='clickLink';a.linkId=linkId;a.levelId=clickLink.parentId;a.parentId=clickLink.parentId;if(clickLink.href==''||clickLink.href=='#'){a.href='#';a.target='';a.style.cursor='default';}else{a.href=clickLink.href;a.target=clickLink.target;}
if(this.layout=="Vertical"){a.innerHTML=clickLink.linkText;}else if(this.layout=="Horizontal-SubMenu"){if(clickLink.linkText.substring(0,1)==" "){a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}else{a.innerHTML=clickLink.linkText;}}else{a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}
a.onmouseover=function(){obj.HideAllLevels();obj.ShowLevel(this);};a.onmouseout=function(e){obj.HideLevel(e);};clickLinkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';clickLinkDiv.className+=' activeLink';}
clickDiv.appendChild(clickLinkDiv);txt=document.createTextNode(' ');clickDiv.appendChild(txt);}
if(linkCount==0||active==false)
{clickDiv.className='inactiveClickUnder';}
else
{clickDiv.className='activeClickUnder';}};AsylumNav.prototype.GetTopLevelLink=function(navLink)
{if(navLink.parentId=='0')
{return(navLink);}
while(1==1)
{navLink=this.GetParentLink(navLink);if(typeof navLink.parentId!='undefined')
{if(navLink.parentId=='0')
{break;}}}
return(navLink);};AsylumNav.prototype.GetParentLink=function(navLink)
{var levelId;var linkId;for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{parNavLink=this.menuItems[levelId][linkId];if(parNavLink.linkId==navLink.parentId)
{return(parNavLink);}}}};AsylumNav.prototype.GetXPos=function(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;};AsylumNav.prototype.GetYPos=function(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;};AsylumNav.prototype.ShowLevel=function(el)
{levelId=el.linkId;this.currentLevelId=levelId;window.clearTimeout(this.timeoutId);this.HideSubLevels(el.levelId);if(typeof this.menuItems[levelId]=='undefined')
{return;}
if(el.linkType=='clickLink')
{eP=document.getElementById('asylumNavClickLink'+el.linkId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'subLevel','clickUnderSubLevel');}
else
{eP=document.getElementById('asylumNavLink'+levelId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'clickUnderSubLevel','subLevel');}
if(eP.parentId=='0')
{switch(this.offset)
{case'Right':offsetX=(eP.offsetWidth);offsetY=0;break;case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;case'Bottom':offsetX=0;offsetY=eP.offsetHeight;eL.style.minWidth=eP.offsetWidth;break;}}
else
{switch(this.offset)
{case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;default:offsetX=(eP.offsetWidth);offsetY=0;break;}}
pX=this.GetXPos(eP);pY=this.GetYPos(eP);lX=pX+offsetX;lY=pY+offsetY;eL.style.position='absolute';$(eL).css({left:lX,top:lY});eL.style.visibility='visible';};AsylumNav.prototype.GetLevelWidth=function(levelId)
{maxWidth=0;for(linkId in this.menuItems[levelId])
{a=document.getElementById('asylumNavLink'+linkId);thisWidth=a.offsetWidth;if(thisWidth>maxWidth)
{maxWidth=thisWidth;}}
return(maxWidth);};AsylumNav.prototype.HideSubLevels=function(levelId,omitLevelId)
{if(typeof omitLevelId=='undefined')
{omitLevelId='0';}
eL=document.getElementById('asylumNavLevel'+levelId);for(levelId in eL.subLevels)
{this.HideSubLevels(levelId);if(levelId!=omitLevelId)
{eL=document.getElementById('asylumNavLevel'+levelId);eL.style.visibility='hidden';}}};AsylumNav.prototype.HideLevel=function(e)
{window.clearTimeout(this.timeoutId);if(!e)e=window.event;var el=(e.relatedTarget)?e.relatedTarget:e.toElement;var obj=this;var funct=function(){obj._HideLevel(el);};this.timeoutId=window.setTimeout(funct,1000);};AsylumNav.prototype._HideLevel=function(el)
{if(!el||el.id.substr(0,9)!='asylumNav'||(el.id.substr(0,9)=='asylumNav'&&el.style.visibility=='hidden'))
{this.HideAllLevels();}};AsylumNav.prototype.HideAllLevels=function()
{for(levelId in this.menuItems)
{if(levelId!='0')
{eL=document.getElementById('asylumNavLevel'+levelId);if(eL!=null)eL.style.visibility='hidden';}}};AsylumNav.prototype.CreateBreadCrumbs=function()
{if(document.getElementById("breadCrumbs")!=null)
{crumbsCont=document.getElementById("breadCrumbs");crumbsCont.style.display='none';crumbs='';homeLink='';for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{navLink=this.menuItems[levelId][linkId];if(homeLink=='')
{homeLink='<a href="'+navLink.href+'" target="'+navLink.target+'">'
+navLink.linkText+'</a> &gt; ';}
if(linkId==pageId)
{i=0;parNavLink=this.GetParentLink(navLink);while(typeof parNavLink=='object')
{i++;crumbs='<a href="'+parNavLink.href+'" target="'+parNavLink.target+'">'
+parNavLink.linkText+'</a> &gt; '+crumbs;parNavLink=this.GetParentLink(parNavLink);}
if(i>1)
{crumbsCont.style.display='block';crumbsCont.innerHTML=homeLink+crumbs+'<span class="activeCrumb">'+navLink.linkText+'</span>';}
return(true);}}}}};function RemoveClass(el,className)
{var replaceName=(el.className.match(' '+className)?' '+className:className);el.className=el.className.replace(replaceName,'');};function AddClass(el,className)
{RemoveClass(el,className);el.className+=' '+className;};function SwapClass(el,removeClassName,addClassName)
{RemoveClass(el,removeClassName);AddClass(el,addClassName);};;$(function() {for (var i in tasks) {window.setTimeout(tasks[i], 0);}});function initMenu(){};$(function(){$("#navMenu").navmenu({pageInfo:{"a448810":{"P":0,"ID":449151,"C":448810,"O":0,"U":"http:\/\/www.medivac.com.au\/","N":"Home","T":"_top","R":"","RT":"_blank"},"a448811":{"P":448810,"ID":449152,"C":448811,"O":"1","U":"http:\/\/www.medivac.com.au\/medical-waste-disposal.html","N":"Bio Hazardous Waste","T":"_top","R":"","RT":"_blank"},"a452933":{"P":448810,"ID":452938,"C":452933,"O":"3","U":"http:\/\/www.medivac.com.au\/technology-in-waste-disposal.html","N":"MetaMizer","T":"_top","R":"","RT":"_blank"},"a452999":{"P":452933,"ID":453004,"C":452999,"O":"1","U":"http:\/\/www.medivac.com.au\/waste-management-in-hospitals.html","N":"The Process","T":"_top","R":"","RT":"_blank"},"a453215":{"P":452999,"ID":453226,"C":453215,"O":"1","U":"http:\/\/www.medivac.com.au\/medical-waste-regulations.html","N":"Technical Specifications","T":"_top","R":"","RT":"_blank"},"a453217":{"P":452999,"ID":453228,"C":453217,"O":"2","U":"http:\/\/www.medivac.com.au\/clinical-waste-disposal.html","N":"Endorsements\/Patents","T":"_top","R":"","RT":"_blank"},"a453001":{"P":452933,"ID":453006,"C":453001,"O":"2","U":"http:\/\/www.medivac.com.au\/clinical-waste-management.html","N":"Point of Generation System","T":"_top","R":"","RT":"_blank"},"a453237":{"P":453001,"ID":453243,"C":453237,"O":"1","U":"http:\/\/www.medivac.com.au\/medical-waste-containers.html","N":"Loading Waste","T":"_top","R":"","RT":"_blank"},"a453239":{"P":453001,"ID":453245,"C":453239,"O":"2","U":"http:\/\/www.medivac.com.au\/management-of-hospital-waste.html","N":"Bin Washer","T":"_top","R":"","RT":"_blank"},"a453240":{"P":453001,"ID":453246,"C":453240,"O":"3","U":"http:\/\/www.medivac.com.au\/clinical-waste-treatment.html","N":"Odour Management","T":"_top","R":"","RT":"_blank"},"a453241":{"P":453001,"ID":453247,"C":453241,"O":"4","U":"http:\/\/www.medivac.com.au\/medical-waste-services.html","N":"Tracking &amp; Tracing","T":"_top","R":"","RT":"_blank"},"a453242":{"P":453001,"ID":453248,"C":453242,"O":"5","U":"http:\/\/www.medivac.com.au\/medical-waste-removal.html","N":"Dicharged Waste","T":"_top","R":"","RT":"_blank"},"a453249":{"P":453001,"ID":453254,"C":453249,"O":"6","U":"http:\/\/www.medivac.com.au\/medical-waste-disposal-company.html","N":"Safety","T":"_top","R":"","RT":"_blank"},"a452997":{"P":452933,"ID":453002,"C":452997,"O":"3","U":"http:\/\/www.medivac.com.au\/medical-waste-solutions.html","N":"Solution Enhancements","T":"_top","R":"","RT":"_blank"},"a453200":{"P":452997,"ID":453204,"C":453200,"O":"1","U":"http:\/\/www.medivac.com.au\/sharps-disposal-systems.html","N":"Sharps Container Disposal","T":"_top","R":"","RT":"_blank"},"a453201":{"P":452997,"ID":453205,"C":453201,"O":"2","U":"http:\/\/www.medivac.com.au\/clinical-waste-bins.html","N":"Clinical Waste Bins","T":"_top","R":"","RT":"_blank"},"a453202":{"P":452997,"ID":453206,"C":453202,"O":"3","U":"http:\/\/www.medivac.com.au\/clinical-waste-bags.html","N":"Clinical Waste Bags","T":"_top","R":"","RT":"_blank"},"a453203":{"P":452997,"ID":453207,"C":453203,"O":"4","U":"http:\/\/www.medivac.com.au\/clinical-waste-containers.html","N":"Trolleys","T":"_top","R":"","RT":"_blank"},"a452998":{"P":452933,"ID":453003,"C":452998,"O":"4","U":"http:\/\/www.medivac.com.au\/environmental-waste-management.html","N":"Benefits","T":"_top","R":"","RT":"_blank"},"a453208":{"P":452998,"ID":453211,"C":453208,"O":"1","U":"http:\/\/www.medivac.com.au\/medical-waste-management.html","N":"Cost Reduction","T":"_top","R":"","RT":"_blank"},"a453209":{"P":452998,"ID":453212,"C":453209,"O":"2","U":"http:\/\/www.medivac.com.au\/medical-waste-safety.html","N":"OH&S","T":"_top","R":"","RT":"_blank"},"a453000":{"P":452933,"ID":453005,"C":453000,"O":"5","U":"http:\/\/www.medivac.com.au\/medical-wastes.html","N":"Waste Management","T":"_top","R":"","RT":"_blank"},"a453230":{"P":453000,"ID":453235,"C":453230,"O":"1","U":"http:\/\/www.medivac.com.au\/biohazardous-waste-disposal.html","N":"Bio Hazardous","T":"_top","R":"","RT":"_blank"},"a452936":{"P":452933,"ID":452941,"C":452936,"O":"6","U":"http:\/\/www.medivac.com.au\/clinical-waste-removal.html","N":"FAQ","T":"_top","R":"","RT":"_blank"},"a452937":{"P":452933,"ID":452942,"C":452937,"O":"7","U":"http:\/\/www.medivac.com.au\/medical-waste-treatment-disposal-methods.html","N":"Regulatory &amp; Patent","T":"_top","R":"","RT":"_blank"},"a453007":{"P":448810,"ID":453008,"C":453007,"O":"4","U":"http:\/\/sunnywipes.com.au","N":"SunnyWipes","T":"_blank","R":"http:\/\/sunnywipes.com.au","RT":"_blank"},"a448813":{"P":448810,"ID":449154,"C":448813,"O":"5","U":"http:\/\/www.medivac.com.au\/trace-element-analysis.html","N":"Diakyne","T":"_top","R":"","RT":"_blank"},"a470894":{"P":448813,"ID":470895,"C":470894,"O":"1","U":"http:\/\/www.medivac.com.au\/trace-elements.html","N":"Health Applications","T":"_top","R":"","RT":"_blank"},"a470892":{"P":448813,"ID":470893,"C":470892,"O":"2","U":"http:\/\/www.medivac.com.au\/trace-analysis.html","N":"Technology","T":"_top","R":"","RT":"_blank"},"a476866":{"P":448810,"ID":476867,"C":476866,"O":"6","U":"http:\/\/www.medivac.com.au\/investor-opportunities.html","N":"Investor Information","T":"_top","R":"","RT":"_blank"},"a452926":{"P":476866,"ID":632640,"C":452926,"O":"1","U":"http:\/\/www.medivac.com.au\/asx-releases.html","N":"ASX Releases","T":"_top","R":"","RT":"_blank"},"a479525":{"P":476866,"ID":479526,"C":479525,"O":"2","U":"http:\/\/www.medivac.com.au\/annual reports.html","N":"Annual Reports","T":"_top","R":"","RT":"_blank"},"a452927":{"P":476866,"ID":452931,"C":452927,"O":"3","U":"http:\/\/www.medivac.com.au\/page452931.html","N":"Corporate Governance","T":"_top","R":"","RT":"_blank"},"a529622":{"P":476866,"ID":564192,"C":529622,"O":"4","U":"http:\/\/www.medivac.com.au\/boardroom-radio-podcasts.html","N":"Boardroom Radio Podcasts","T":"_top","R":"","RT":"_blank"},"a563477":{"P":476866,"ID":564745,"C":563477,"O":"5","U":"http:\/\/www.medivac.com.au\/osixmedia-interview.html","N":"OSix Media Podcasts","T":"_top","R":"","RT":"_blank"},"a579274":{"P":476866,"ID":632903,"C":579274,"O":"6","U":"http:\/\/www.medivac.com.au\/press-media.html","N":"Press Articles","T":"_top","R":"","RT":"_blank"},"a449150":{"P":448810,"ID":449157,"C":449150,"O":"7","U":"http:\/\/www.medivac.com.au\/biomedical-waste-management.html","N":"About","T":"_top","R":"","RT":"_blank"},"a452803":{"P":449150,"ID":452808,"C":452803,"O":"1","U":"http:\/\/www.medivac.com.au\/healthcare-hygiene.html","N":"Board of Directors","T":"_top","R":"","RT":"_blank"},"a452802":{"P":449150,"ID":452807,"C":452802,"O":"2","U":"http:\/\/www.medivac.com.au\/health-care-waste.html","N":"Management Team","T":"_top","R":"","RT":"_blank"},"a452804":{"P":449150,"ID":452809,"C":452804,"O":"3","U":"http:\/\/www.medivac.com.au\/hygiene-medical-microbiology.html","N":"Partners","T":"_top","R":"","RT":"_blank"},"a449149":{"P":448810,"ID":449158,"C":449149,"O":"8","U":"http:\/\/www.medivac.com.au\/hospital-clinical-waste.html","N":"Contact","T":"_top","R":"","RT":"_blank"}},alignment:"Horizontal",animate:0})});